<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // function fn(){
        //     return 123;
        // }

        // // 拿到返回值
        // let n = fn();

        // console.log(n);

        // 返回复杂的数据类型
        function fn(){
            return {
                a:12,
                b:5
            };
        }

        // 拿到返回值
        let {a,b} = fn();

        console.log(a,b);

        // console.log(obj.a);
        // console.log(obj.b);


    </script>
</body>
</html>